/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

import java.util.ArrayList;

/**
 *
 * @author CUNEYT
 */
public class Client {

    private String name;
    private String general_info;
    private String contact_person;
    private String contact_info;
    private ArrayList<Campaign> campaigns;

    public Client(String name, String gen_info, String con_person, String con_info) {
        this.name = name;
        this.general_info = gen_info;
        this.contact_person = con_person;
        this.contact_info = con_info;
        this.campaigns = new ArrayList<Campaign>();
    }

    public void addCampaign(Campaign c) {
        if (!getCampaigns().contains(c)) {
            this.campaigns.add(c);
        }
    }

    public ArrayList<Campaign> getCampaigns() {
        return campaigns;
    }

    public void setCampaigns(ArrayList<Campaign> campaigns) {
        this.campaigns = campaigns;
    }

    public String getContact_info() {
        return contact_info;
    }

    public void setContact_info(String contact_info) {
        this.contact_info = contact_info;
    }

    public String getContact_person() {
        return contact_person;
    }

    public void setContact_person(String contact_person) {
        this.contact_person = contact_person;
    }

    public String getGeneral_info() {
        return general_info;
    }

    public void setGeneral_info(String general_info) {
        this.general_info = general_info;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return getName();
    }
}
